<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var sum=0;
        var i=1;
        while(i<5){
            sum=sum+i;
            i++;

        }
       
        
        
        //
        var x=1;
     
        var s=0;
        do{
           s=x+s;
            x++;
        }
        while(x<3);
        document.write(s+" "+sum); 
        




    </script>
    
</body>
</html>